<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +-----------------------------------------------------------------
// | 配置文件扩展
// +-----------------------------------------------------------------
// | Copyright: (c) 2016 Genxin, Inc. All Rights Reserved.
// +-----------------------------------------------------------------
// | PHP version: 5.4
// +-----------------------------------------------------------------
// | Encoding: UTF-8
// +-----------------------------------------------------------------
// | Authors: Geng Xin <gengxin55200@126.com>
// +-----------------------------------------------------------------
//
// $Id: $

return array(
    'AUTO_LOGIN_TIME'  => 7 * 24 * 3600,
    'INIT_PASSWORD'    => '888888',

    'SYS_SOFT'         => '攒聚斗地主后台管理系统',
    'SYS_COMM'         => '攒聚斗地主',
    'SYS_COMM_SHORT'   => '攒聚斗地主',
    'SYS_CURRENT_YEAR' => date('Y'),

    'SYS_SALT'        => 'a68df2c853705ff6fb3de9c99cb0d333',    // 系统盐值 32位

    'SYS_HOST'        => 'http://' . $_SERVER['HTTP_HOST'],
    'SYS_SAVE_PATH'   => FILE_UPLOAD_PATH . '\Uploads',
    'SYS_EMPTY_IMG'   => '/Public/common/img/empty.png', // 图片缺省值
    'SYS_FONTS_PATH'  => './Public/common/fonts/msyhbd.ttf',

    // 页面静态化配置
    'SYS_STATIC_PAGE' => './Public/static/',
    'SYS_STATIC_TIME' => 300,

    'SYS_FTP' => array(
        'HOST'     => '',
        'PORT'     => '',
        'USER'     => '',
        'PASSWORD' => ''
    ),

    // 通信配置
    'SYS_COMMUNICATION' => array(
        'HOST_NAME1' => '',
        'HOST_NAME2' => '',
        'HOST_NAME3' => ''
    ),

    // 上传配置
    'SYS_UPLOAD_IMAGE' => array(
        'LIMIT'        => '3145728',
        'THUMB_WIDTH'  => '320',
        'THUMB_HEIGHT' => '480'
    ),

    // OAuth2配置
    'OAUTH2' => array(
        'DB_DSN'        => 'mysql://root:root@localhost:3306/project',
        'CODES_TABLE'   => 'pro_oauth_code',
        'TOKEN_TABLE'   => 'pro_oauth_client',
        'CLIENTS_TABLE' => 'pro_oauth_client'
    ),

    // 短信配置
    'SYS_SMS' => array(
        'ACCOUNT'  => 'XX',
        'PASSWORD' => 'XX',
        'URL'      => 'http://222.73.117.158/msg/HttpBatchSendSM',
        'STATUS'   => 'true'
    ),

    // 邮件配置
    'SYS_MAIL' => array(
        'HOST'       => 'smtp.126.com',         // smtp服务器的名称
        'SMTP_AUTH'  => true,                   // 启用smtp认证
        'USER_NAME'  => 'gengxin55200@126.com', // 管理员邮箱密码
        'FROM'       => 'gengxin55200@126.com', // 发件人地址
        'FROM_NAME'  => '公司名称',              // 发件人姓名
        'PASSWORD'   => 'fly09kb07',            // 管理员邮箱密码
        'CHARSET'    => 'utf-8',                // 设置邮件编码
        'IS_HTML'    => true,                   // 是否HTML格式邮件
        'WORDWRAP'   => 80
    ),

    // 微信分享
    'WECHAR' => array(
        'APP_KEY'    => 'wxbb1372034bf7411c',
        'APP_SECRET' => '1d53e84c561beea6a4a6b3431fecbef7'
    ),

    // 微信支付
    'WXPAY' => array(
        'APPID'           => 'wx8888888888888888',                 // APPID
        'APPSECRET'       => '48888888888888888888888888888887',   // APP秘钥
        'MCHID'           => '18888887',                           // 商户id
        'KEY'             => '48888888888888888888888888888886',   // 商户秘钥

        'JS_API_CALL_URL' => WEB_HOST . '/index.php/Wx/jsApiCall',
        'SSLCERT_PATH'    => WEB_HOST . '/ThinkPHP/WxPayPubHelper/cacert/apiclient_cert.pem',
        'SSLKEY_PATH'     => WEB_HOST . '/ThinkPHP/WxPayPubHelper/cacert/apiclient_cert.pem',
        'NOTIFY_URL'      => WEB_HOST . '/index.php/Wx/notify',
        'CURL_TIMEOUT'    => 30,
    ),
);